package com.market.mapper;

import com.market.entity.CommercialTenant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommercialTenantMapper {
    /**
     * 插入商户
     *
     * @param commercialTenant
     * @return
     */
    int insert(@Param("commercialTenant") CommercialTenant commercialTenant);

    /**
     * 删除
     *
     * @param commercialTenantId
     * @return
     */
    int delect(@Param("commercialTenantId") Long commercialTenantId);


    /**
     * 查询商户名称
     *
     * @return
     */
    List<CommercialTenant> select();

    /**
     * 查询所有商户
     *
     * @return
     */
    List<CommercialTenant> selects();

}
